package com.my.kq.service;

import com.my.kq.dao.attendanceDao;
import com.my.kq.entity.Attendance;

import java.util.List;

public class attendanceService {

    private attendanceDao attendanceDao=new attendanceDao();
    public List<Attendance> attList(Integer number) throws Exception {
      List<Attendance> list=  attendanceDao.attList(number);
        return list;
    }
//上班
    public int attenadd(Integer number, String day, String timeType, String startTime, String starTime) throws Exception {
      int num= attendanceDao.attenadd(number,day,timeType,startTime,starTime);
        return num;
    }
//下班
    public void attenaddxw(Integer id, String startTime, String starTime) throws Exception {
        attendanceDao.attenaddxb(id,startTime,starTime);
    }
//查询id
    public Attendance attcx(Integer number, String day) throws Exception {
        Attendance att= attendanceDao.attcx(number,day);
        return att;
    }
}
